{% extends "NartiBouncerBundle::layoutbouncer.html.twig" %}

{% block css %}
<link rel="stylesheet" href="{{ asset('bundles/nartibouncer/css/ui.jqgrid.css') }}" type="text/css" media="screen" />
<style>
 form label,
 form input{  display: block; }
</style>
{% endblock %}


{% block content %}

    <div id="bouncer-content">
        <div id="formcontainer" title="Gestione Ruolo"></div>
        <table id="idlist" ></table>
        <div id="idpager"></div>
    </div>
    
{%endblock content%}

{% block js %}
<script type="text/javascript" src="{{ asset('bundles/nartibouncer/js/grid.locale-it.js') }}"></script>  
<script type="text/javascript" src="{{ asset('bundles/nartibouncer/js/jquery.jqgrid.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('bundles/nartibouncer/js/jquery.jqgrid.role.js') }}"></script>

<script type="text/javascript">
var router = {
    index : '{{ path('role') }}',
    _new : '{{ path('role_new') }}',
    create : '{{ path('role_create') }}'
   
};

var IDS = {
   list : "#idlist",
   pager : "#idpager",
   formctr : "#formcontainer"
};

$(function(){
    
    if(typeof initNavcol === "function"){
        initNavcol();
    }
    if(typeof initBounce === "function"){
        initBounce();
    }
    
    roleCrudHandler();
});
</script>

{% endblock %}

